package com.fubowen.reader.components

import android.content.Context
import androidx.recyclerview.widget.LinearLayoutManager

class SlideControlLayoutManager(context: Context) : LinearLayoutManager(context) {

    var enableX = true
    var enableY = true

    override fun canScrollHorizontally(): Boolean {
        return super.canScrollHorizontally() && enableX
    }

    override fun canScrollVertically(): Boolean {
        return super.canScrollVertically() && enableY
    }
}